from langchain.chains.conversation.base import ConversationChain
from langchain_community.llms import Tongyi
from dotenv import find_dotenv, load_dotenv

load_dotenv(find_dotenv())

llm = Tongyi()
conversation = ConversationChain(llm=llm, verbose=True)

print(conversation.invoke("你好呀！"))
print(conversation.invoke("今天领养了一只小猫"))